import request from '@/utils/request'

/**
 * 获取员工的综合列表数据
 * ***/
export function getEmployeeList(params) {
  return request({
    url: '/sys/user',
    params
  })
}
/** ** *  新增员工的接口 * **/
export function addEmployeeApi(data) {
  return request({
    method: 'post',
    url: '/sys/user',
    data
  }
  )
}
/** * 删除员工接口 * ****/
export function delEmployeeApi(id) {
  return request(
    {
      url: `/sys/user/${id}`,
      method: 'delete'
    })
}
